package com.ccrfid.rmc6.pojo.dto.mattress;

import java.util.List;

public class MattressMsgDto {
    private String ma;      //制造商
    private String mo;      //设备型号
    private Integer v;      //协议版本
    private String sn;      //唯一编码
    private MattressData d;

    public String getMa() {
        return ma;
    }

    public void setMa(String ma) {
        this.ma = ma;
    }

    public String getMo() {
        return mo;
    }

    public void setMo(String mo) {
        this.mo = mo;
    }

    public Integer getV() {
        return v;
    }

    public void setV(Integer v) {
        this.v = v;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public MattressData getD() {
        return d;
    }

    public void setD(MattressData d) {
        this.d = d;
    }

    public class MattressData {
        private Integer fv;         //固件版本
        private String st;          //体征状态：on-在床；off-离床；mov-体动；call-呼叫
        private Integer hb;         //心跳频率
        private Integer br;         //呼吸频率
        private Boolean wt;         //湿度：true=尿湿；false-非尿湿
        private Integer od;         //呼吸暂停次数
        private Integer we;         //重量，在床/离床辅助判断
        private List<Integer> p;    //身体位置

        public Integer getFv() {
            return fv;
        }

        public void setFv(Integer fv) {
            this.fv = fv;
        }

        public String getSt() {
            return st;
        }

        public void setSt(String st) {
            this.st = st;
        }

        public Integer getHb() {
            return hb;
        }

        public void setHb(Integer hb) {
            this.hb = hb;
        }

        public Integer getBr() {
            return br;
        }

        public void setBr(Integer br) {
            this.br = br;
        }

        public Boolean getWt() {
            return wt;
        }

        public void setWt(Boolean wt) {
            this.wt = wt;
        }

        public Integer getOd() {
            return od;
        }

        public void setOd(Integer od) {
            this.od = od;
        }

        public Integer getWe() {
            return we;
        }

        public void setWe(Integer we) {
            this.we = we;
        }

        public List<Integer> getP() {
            return p;
        }

        public void setP(List<Integer> p) {
            this.p = p;
        }

        @Override
        public String toString() {
            return "{" +
                    "fv=" + fv +
                    ", st='" + st + '\'' +
                    ", hb=" + hb +
                    ", br=" + br +
                    ", wt=" + wt +
                    ", od=" + od +
                    ", we=" + we +
                    ", p=" + p +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "{" +
                "ma='" + ma + '\'' +
                ", mo='" + mo + '\'' +
                ", v=" + v +
                ", sn='" + sn + '\'' +
                ", d=" + d +
                '}';
    }
}
